import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '用户id',
    align: "center",
    dataIndex: 'userId'
  },
  {
    title: 'openid',
    align: "center",
    dataIndex: 'openId'
  },
  {
    title: 'nickname',
    align: "center",
    dataIndex: 'nickName'
  },
  {
    title: 'sex',
    align: "center",
    dataIndex: 'sex'
  },
  {
    title: 'province',
    align: "center",
    dataIndex: 'province'
  },
  {
    title: 'city',
    align: "center",
    dataIndex: 'city'
  },
  {
    title: 'country',
    align: "center",
    dataIndex: 'country'
  },
  {
    title: 'headimgurl',
    align: "center",
    dataIndex: 'headImgUrl',
    customRender: render.renderImage,
  },
];

// 高级查询数据
export const superQuerySchema = {
  userId: {title: '用户id',order: 0,view: 'text', type: 'string',},
  openId: {title: 'openid',order: 1,view: 'text', type: 'string',},
  nickName: {title: 'nickname',order: 2,view: 'text', type: 'string',},
  sex: {title: 'sex',order: 3,view: 'text', type: 'string',},
  province: {title: 'province',order: 4,view: 'text', type: 'string',},
  city: {title: 'city',order: 5,view: 'text', type: 'string',},
  country: {title: 'country',order: 6,view: 'text', type: 'string',},
  headImgUrl: {title: 'headimgurl',order: 7,view: 'image', type: 'string',},
};
